gtklinkbutton: Set cursor on button's event window
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 25 Jul 2017 13:46:01 +0000 (15:46 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 26 Jul 2017 11:11:43 +0000 (13:11 +0200)
commit21062fab022b97fb37d9ffa29eae7f3815ef6a16
treeaf373409e8b83d3366153678a5d91c812757589c
parent8f33385d620bb81f436d83a60d1d835885cc6cee
gtklinkbutton: Set cursor on button's event window

It is not necessary to (re)set the cursor on every crossing
event, and can probably yield the wrong results if there are
multiple master devices involved. Just set it on init(), and
let the inner machinery update the cursor whenever necessary.

This patch is an adaption of commit 0daf79676 in gtk-3-22, the
side effects are not as bad here because the cursor was already
being set on the widget specifically instead of the parent
widget's, but there's still some nonetheless (plus, it's simpler)

https://bugzilla.gnome.org/show_bug.cgi?id=785375
gtk/gtklinkbutton.c